<?php
	/**
	* 
	*/
	class SettingAccount extends CI_Controller
	{
		
		function __construct()
		{
			parent::__construct();
			$this->load->model("model_user","user");
		}
		function index(){
			if($this->session->userdata('logged_in')){
				$user_info=$this->session->userdata('logged_in');
				$username = $user_info['username'];
				$user_data= $this->user->get_user_by_username($username);
				$this->_data=array(
					'fullname' => $user_info['fullname'],
					'template' => 'account/setting_Account',
					'user_info' =>$user_data,
					);
				$this->load->view('index_admin',$this->_data);
			}else{
				redirect('/admin/login');
			}
		}
	}
?>